import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

// @符号表示src
import HelloMary from '@/components/HelloMary'
import Baidu from '@/components/Baidu'
import Shop from '@/components/shop'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/hello',
      name: 'HelloMary',
      component: HelloMary
    },
    {
      path: '/baidu',
      name: 'Baidu',
      component: Baidu
    },
    {
      path: '/shop',
      name: 'Shop',
      component: Shop
    }
  ]
})
